package tool;

import main.DrawingCanvas;

public class Fill extends Tool{

	public Fill(DrawingCanvas drawingCanvas) {
		super(drawingCanvas);
	}
	public boolean pointerPressed(int x, int y) {
		return false;
	}

	public boolean pointerReleased(int x, int y) {
		drawingCanvas.backUpData();
		int i = drawingCanvas.getCol(x);
		int j = drawingCanvas.getRow(y);
		drawingCanvas.floodFill( i, j);
		return true;
	}

	public boolean pointerDragged(int x, int y) {
		
		return false;
	}
}
